
window.onload=function(){
		$(function(){
			$("#hear li").click(function(){
				$(this).css({
					borderBottom: "2px solid #00f",
					height:"43px",
					
				}).siblings().css({
					borderBottom: "none",
					height:"45px"
				});});					
				
			$("#hear li").click(function(){
				$(this).addClass("action").siblings().removeClass("action");
				var index = $(this).index();
				$("#contentop li").eq(index).css("display","block").siblings().css("display","none");
			});});

		//table img↓
			$('#tp_0').click(function(){ 
            $(".imgbox").css("display","none");  
            $(".table_photo li").css("display","none");
            $(".table_photo h5").css("display","block");
            $(".table_photo").css("display","none");
            $("#tp_0").css("display","none");
            $("#tp_1").css("display","block");});
			$('#tp_1').click(function(){ 
            $(".imgbox").css("display","block");  
            $(".table_photo li").css("display","block");
            $(".table_photo h5").css("display","none");
            $(".table_photo").css("display","block");
            $("#tp_1").css("display","none");
            $("#tp_0").css("display","block");}); //↑原来的审查表拍照
			$('#tp_2').click(function(){ //隐患记录照片
            $("#updateimg").css("display","none");
            $("#tp_2").css("display","none");
            $("#tp_3").css("display","block");
        });
			$('#tp_3').click(function(){   
            $("#updateimg").css("display","block"); 
            $("#tp_2").css("display","block"); 
            $("#tp_3").css("display","none");
            });

};



















